package com.example.demo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 商品规格表(GoodStandard)表实体类
 *
 * @author makejava
 * @since 2025-08-26 17:22:08
 */
@SuppressWarnings("serial")
public class GoodStandard extends Model<GoodStandard> {
//商品id
    private Long goodId;
//规格
    private String value;
//价格
    private Double price;
//库存
    private Long store;


    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Long getStore() {
        return store;
    }

    public void setStore(Long store) {
        this.store = store;
    }

    /**
     * 获取主键值 - 由于是复合主键，返回组合值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        // 对于复合主键，返回包含所有主键字段的组合字符串
        return goodId + "_" + value;
    }
}

